package com.qyhl.school.school.column.detail;


import com.qyhl.webtv.commonlib.entity.school.SchoolDetailBean;

public class SchoolColumnDetailPresenter implements SchoolColumnDetailContract.SchoolColumnDetailPresenter {
    private SchoolColumnDetailContract.SchoolColumnDetailView mView;
    private SchoolColumnDetailModel mModel;

    public SchoolColumnDetailPresenter(SchoolColumnDetailContract.SchoolColumnDetailView mView) {
        this.mView = mView;
        this.mModel = new SchoolColumnDetailModel(this);
    }

    @Override
    public void getDetail(int schoolId) {
        mModel.getDetail(schoolId);
    }

    @Override
    public void setDetail(SchoolDetailBean bean) {
        mView.setDetail(bean);
    }

    @Override
    public void setError(String msg) {
        mView.setError(msg);
    }
}
